- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
🐛🎨 [Frontend] RTC: Reload project after websocket reconnection #8406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ensures users are automatically added to socket rooms for projects they have open when connecting, improving real-time collaboration and state synchronization across project sessions.
          
🧪 CI InsightsHere's what we observed from your CI run for 111fb5b. ✅ Passed Jobs With Interesting Signals
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a Share button to the study menu and improves WebSocket reconnection handling by reloading project data after reconnections to ensure data consistency. Also enhances error handling for pipeline runs by displaying backend error messages.
- Adds Share button to study menu that opens access rights management
 - Implements project document re-synchronization on WebSocket reconnections
 - Improves error message handling for 409 status pipeline run errors
 
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description | 
|---|---|
| StudyTitleWOptions.js | Adds Share menu button and access rights functionality | 
| StudyEditor.js | Adds WebSocket reconnection handling and improves pipeline error messages | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
        
          
                services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js
          
            Show resolved
            Hide resolved
        
      …tudyEditor.js Co-authored-by: Copilot <[email protected]>
…b.com:matusdrobuliak66/osparc-simcore into fixes/rtc-2
          Codecov Report❌ Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##           master    #8406      +/-   ##
==========================================
- Coverage   87.90%   81.19%   -6.72%     
==========================================
  Files        1951      761    -1190     
  Lines       75967    35050   -40917     
  Branches     1336      175    -1161     
==========================================
- Hits        66778    28458   -38320     
+ Misses       8790     6535    -2255     
+ Partials      399       57     -342     
 
 Continue to review full report in Codecov by Sentry. 
 🚀 New features to boost your workflow:
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that will help! thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| 
           @mergify queue  | 
    
          
 🟠 Waiting for conditions to match
  | 
    
          
 | 
    



What do these changes do?
This PR improves WebSocket reconnection handling by reloading project data after reconnections to ensure data consistency.
In the animation, user1 goes offline while user2 added the sleeper_3 node. After reconnecting, user1 fetches the latest project and adds the missing sleeper_3.

Bonus:
Related issue/s
How to test
Dev-ops